GBML manual / Constants

BACKDROP_DEEP

Deep water: bright turquoise at the top, then blue, and ink-dark navy at the bottom, as if you were sinking.

Works differently on Game Boy - On the Game Boy the sky becomes bands of its 4 shades (see screen_backdrop), so the sky shows only where the picture leaves the shade for the sky; the sky has to be named in the call.

Works differently on Game Boy Color - On the Game Boy Color the sky's colors go row by row into the picture's first color (see screen_backdrop), so the sky shows only where the picture uses that color; it has to be named in the call.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BACKDROP_DEEP: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the deep-water sky, for screen_backdrop. The backdrop is the color that fills the screen behind every picture, and with this look it changes on every row: bright turquoise at the top, where the light comes in from the surface, then clear blue, then a navy that ends nearly black.

It is made for a title screen or a cutscene under the sea, where there are row-by-row effects to spare. Only the places where nothing else is drawn show it, so a seabed, a wreck or some rocks drawn in front hide it, and the water shows through every gap. strength picks how rich the color is: 1 is a pale, misty green-blue, 2 is in between, and 3 is full deep blue.

A real capture, three pictures of the same deep water - strength 1 (a pale misty green-blue), strength 2 (in between) and strength 3 (full deep blue) - the same rows each time, with a lighthouse on dark ground in frontA real capture, three pictures of the same deep water - strength 1 (a pale misty green-blue), strength 2 (in between) and strength 3 (full deep blue) - the same rows each time, with a lighthouse on dark ground in front
A real capture, three pictures of the same deep water - strength 1 (a pale misty green-blue), strength 2 (in between) and strength 3 (full deep blue) - the same rows each time, with a lighthouse on dark ground in front

One depth, three strengths: 1, 2 and 3 from left to right. Real pictures from a Game Boy Advance ROM, each one a slice of the screen.

The water is drawn twice as tall as the screen, and speed slides the screen down it and back again, so a slow speed is a dive: the light fades as you sink and comes back as you rise. A speed of 0 holds one depth still; 0.25 takes about ten seconds to go from the bright top to the dark bottom.

A real capture, 18 frames played in a loop - the water slowly changing from bright turquoise near the surface to a dark blue and then nearly black navy as if sinking, while the lighthouse and the ground in front of it never changeA real capture, 18 frames played in a loop - the water slowly changing from bright turquoise near the surface to a dark blue and then nearly black navy as if sinking, while the lighthouse and the ground in front of it never change
A real capture, 18 frames played in a loop - the water slowly changing from bright turquoise near the surface to a dark blue and then nearly black navy as if sinking, while the lighthouse and the ground in front of it never change

A dive, sped up: eighteen real pictures eight frames apart, played a tenth of a second each, so about two and a half seconds of the dive take less than two. The lighthouse and the ground never change. This picture is an animated PNG; a viewer that cannot animate shows its first frame, the bright water near the surface.

Example

screen_backdrop(BACKDROP_DEEP, 3, 0.25);

A slow dive. Call it once, for example when the room starts - it keeps going by itself until you call screen_backdrop(BACKDROP_NONE, 0, 0) or a room is loaded.

See also: screen_backdropBACKDROP_NONEBACKDROP_SUNSET